package org.itsolutions.javaBackup.spi.backup.common;

import java.util.List;

import org.itsolutions.javaBackup.exceptions.AException;

/**
 * 
 * @author Tomas Fecko
 */
public interface IDownloadHandler {


	/**
	 * 
	 * @param pFolder folder
	 * @return list of files
	 * @throws AException exception if 
	 */
	List<? extends FileWrapper> getListOfFiles(String pFolder) throws AException;

	/**
	 * 
	 * @param pFileWrapper fileWrapper
	 * @return file in byte[]
	 * @throws AException
	 */
	byte[] downloadFile(FileWrapper pFileWrapper) throws AException;
}





